package com.linkstec.bookshop.pojo;

import java.util.ArrayList;
import java.util.List;

import com.linkstec.bookshop.vo.ScartVo;

/**
 * 
 * @ClassName: Order 订单表 数据库表order的实体类
 * @Description:TODO
 * @author: JGQiang
 * @date: 2018年11月22日 上午11:58:53
 */
public class Order {

	private int oId;// 订单id

	private String addr;// 地址

	private String tel;// 电话

	private String oTime;// 创建时间

	private int oState; // 订单状态

	private int userId; // userId

	private double totalMoney; // 订单金额

	private String accepter; // 收货人

	List<ScartVo> oList = new ArrayList<>();// 关联子订单

	public List<ScartVo> getoList() {
		return oList;
	}

	public void setoList(List<ScartVo> oList) {
		this.oList = oList;
	}

	public String getAccepter() {
		return accepter;
	}

	public void setAccepter(String accepter) {
		this.accepter = accepter;
	}

	public int getoId() {
		return oId;
	}

	public void setoId(int oId) {
		this.oId = oId;
	}

	public String getAddr() {
		return addr;
	}

	public void setAddr(String addr) {
		this.addr = addr;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getoTime() {
		return oTime;
	}

	public void setoTime(String oTime) {
		this.oTime = oTime;
	}

	public int getoState() {
		return oState;
	}

	public void setoState(int oState) {
		this.oState = oState;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public double getTotalMoney() {
		return totalMoney;
	}

	public void setTotalMoney(double totalMoney) {
		this.totalMoney = totalMoney;
	}

	@Override
	public String toString() {
		return "Order [oId=" + oId + ", addr=" + addr + ", tel=" + tel + ", oTime=" + oTime + ", oState=" + oState
				+ ", userId=" + userId + ", totalMoney=" + totalMoney + ", accepter=" + accepter + ", oList=" + oList
				+ "]";
	}

}
